package com.sanyou.enums;

/**
 * @Author xhy
 * @Description 用户角色类型
 * @Date 2022/10/9 17:18
 **/
public enum RoleType {
    ADMIN("root",1),
    CLIENT("client",2);
    private final String code;
    private final int value;

    RoleType(String code,int value) {
        this.code = code;
        this.value = value;
    }

    public String getCode(){
        return this.code;
    }
    public int getValue(){return this.value;}
}
